package grape.attend.rest.user.vo;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import grape.common.service.trans.TransField;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 用户打卡日期表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户打卡日期表数据响应对象")
public class UserClockDateVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "班次日期")
    private Date classeDate;


    @TransBy(type = DatetimeTransServiceImpl.trans_date,byFieldName = "classeDate")
    @ApiModelProperty(value = "班次日期文本")
    private String classeDateTxt;

    @ApiModelProperty(value = "是否存在异常")
    private Boolean isHasError;

    @TransField
    @ApiModelProperty(value = "班次日期的班次")
    List<UserClockDateClasseVo> userClockDateClasses;

    @TransField
    @ApiModelProperty(value = "用户的打卡信息")
    private List<UserClockVo> userClocks;

    @ApiModelProperty(value = "备注")
    private String remark;


}
